import request from "@/utils/request";

// 监测
export function fetchPrivilegeAlarm(params) {
  return request({
    url: "/system/alarmScreenData/qureyPrivilegeAlarm",
    method: "get",
    params,
  });
}

// 异常
export function fetchAbnormal(params) {
  return request({
    url: "/system/alarmScreenData/qureyDataExcAlarm",
    method: "get",
    params,
  });
}

// 业务系统告警TOP5
export function fetchBusinessAlarm(params) {
  return request({
    url: "/system/alarmScreenData/qureyBusinessAlarm",
    method: "get",
    params,
  });
}

// OWASP风险分布
export function fetchOwaspAlarm(params) {
  return request({
    url: "/system/alarmScreenData/qureyOwaspAlarm",
    method: "get",
    params,
  });
}

// 脆弱性分布
export function fetchWeakAlarm(params) {
  return request({
    url: "/system/alarmScreenData/qureyWeakAlarm",
    method: "get",
    params,
  });
}

// 接口监测事件
export function fetchEventAlarm(params) {
  return request({
    url: "/system/alarmScreenData/qureyEventAlarm",
    method: "get",
    params,
  });
}

// 接口监测告警访问源TOP10
export function fetchAlarmSource(params) {
  return request({
    url: "/system/alarmScreenData/qureySourceIpAlarm",
    method: "get",
    params,
  });
}

// 接口监测近7天告警
export function fetchSevenDayAlarm(params) {
  return request({
    url: "/system/alarmScreenData/qureySevenDayAlarm",
    method: "get",
    params,
  });
}

//实时告警列表
export function fetchRealTimeAlarm(params) {
  return request({
    url: "/system/alarmInfo/topAlarmInfo",
    method: "get",
    params,
  });
}
